package functional;

import java.util.function.Supplier;

/**
 * @author lyx
 * @Date 2021/6/26 12:06
 * 生产型接口
 * 没有参数, 只有返回值
 */
public class SupplierTest {
    public static void main(String[] args) {
        Supplier supplier = ()->{
            return "1024111xxxxcccc";
        };
        System.out.println(supplier.get());
    }
}
